class Persion
{
    public String name;
    public int age;
    public void eat()
    {
        System.out.println(name+"正在吃饭！");
    }
    public void show()
    {
        System.out.println("姓名"+name+" "+"年纪"+age);
    }
}
public class Test {

    public static void main(String[] args) {
        Persion per=new Persion();
        per.name="zhangsan";
        per.age=20;
        //System.out.println(per.name);
        //System.out.println(per.age);
        per.show();
        Persion per1=new Persion();
        per1.name="lisi";
        per1.age=30;
        per1.show();
        System.out.println();
        per=per1;
        per.show();
        }
}